<html>
	<head>
		<script type="text/javascript" src="test2.js"></script>
		<script language="JavaScript">
			function publicMethod() {
				var a = new A();
				a.publicMethod();
			}
			function privateMethod() {
				var a = new A();
				a.privateMethod();
			}
		</script>
	</head>
	
	<body>
		<p>public and private method.</p>
		<input type="button" value="publicMethod" onclick="publicMethod()" />
		<input type="button" value="privateMethod" onclick="privateMethod()" />
		<br/>
	</body>
</html>